package com.jxl.domain.convert;

import com.jxl.domain.entity.SubjectCategoryBO;
import com.jxl.infra.basic.entity.SubjectCategory;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectCategoryConvert {

    SubjectCategoryConvert INSTANCE = Mappers.getMapper(SubjectCategoryConvert.class);

    /**
     * 类转换
     * @param subjectCategoryBO
     * @return
     */
    SubjectCategory convertBoToSubjectCategory(SubjectCategoryBO subjectCategoryBO);

    /**
     * 类转换
     * @param subjectCategory
     * @return
     */
    SubjectCategoryBO convertToSubjectCategoryBO(SubjectCategory subjectCategory);

    /**
     * 类转换
     * @param
     * @return
     */
    List<SubjectCategoryBO> convertToSubjectCategoryList(List<SubjectCategory> subjectCategory);

}
